
export default [
  //后台首页
  {
    path: "/index",
    name: "index",
    key: '1',
    title: "后台首页",
    component: () => import("@/views/home/index.vue"),
    children: [
      {
        path: "/index/home",
        name: "home",
        key: '1-1',
        title: "欢迎页",
        component: () => import("@/views/home/home.vue"),
        meta: { crumb: ["后台首页","欢迎页"] }
      },
      {
        path: "/index/history",
        name: "history",
        key: '1-2',
        title: "访客记录",
        meta: { crumb: ["后台首页","访客记录"] },
        component: () => import("@/views/home/history.vue"),
      },
    ]
  },
  //商品分类
  {
    path: "/goods",
    name: "goods",
    key: '2',
    title: "商品分类",
    component: () => import("@/views/goods/index.vue"),
    children: [
      {
        path: "/goods/cate",
        name: "cate",
        key: '2-1',
        title: "分类列表",
        meta: { crumb: ["商品分类","分类列表"] },
        component: () => import("@/views/goods/cate/index.vue"),
      },
      {
        path: "/goods/cateCreate",
        name: "cateCreate",
        key: '2-2',
        title: "分类创建",
        meta: { crumb: ["商品分类","分类创建"] },
        component: () => import("@/views/goods/cate/create.vue"),
      },
    ]
  },
  //商品规格
  {
    path: "/specifications",
    name: "specifications",
    title: "商品规格",
    key: '3',
    component: () => import("@/views/goods/index.vue"),
    children: [
      {
        path: "/specifications/type",
        name: "type",
        key: '3-1',
        title: "商品类型",
        meta: { crumb: ["商品规格","商品类型"] },
        component: () => import("@/views/goods/specifications/type.vue"),
      },
      {
        path: "/specifications/typeCreate",
        name: "typeCreate",
        key: '3-2',
        title: "类型创建",
        meta: { crumb: ["商品规格","类型创建"] },
        component: () => import("@/views/goods/specifications/typeCreate.vue"),
      },
      {
        path: "/specifications/attr",
        name: "attr",
        key: '3-3',
        title: "商品属性",
        meta: { crumb: ["商品规格","商品属性"] },
        component: () => import("@/views/goods/specifications/attr.vue"),
      },
      {
        path: "/specifications/attrCreate",
        name: "attrCreate",
        key: '3-4',
        title: "属性创建",
        meta: { crumb: ["商品规格","属性创建"] },
        component: () => import("@/views/goods/specifications/attrCreate.vue"),
      },
    ]
  },
  //商品管理
  {
    path: "/manage",
    name: "manage",
    key: '4',
    title: "商品管理",
    component: () => import("@/views/goods/index.vue"),
    children: [
      {
        path: "/manage/manageList",
        name: "manageList",
        key: '4-1',
        title: "商品列表",
        meta: { crumb: ["商品管理","商品列表"] },
        component: () => import("@/views/goods/manage/list.vue"),
      },
      {
        path: "/manage/manageListCreate",
        key: '4-2',
        name: "manageListCreate",
        title: "商品创建",
        meta: { crumb: ["商品管理","商品创建"] },
        component: () => import("@/views/goods/manage/create.vue"),
      },
      {
        path: "/manage/manageListCecycle",
        name: "manageListCecycle",
        key: '4-3',
        title: "商品回收站",
        meta: { crumb: ["商品管理","商品回收站"] },
        component: () => import("@/views/goods/manage/recycle.vue"),
      },
    ]
  },
  //订单管理
  {
    path: "/order",
    name: "order",
    key: '5',
    title: "订单管理",
    component: () => import("@/views/order/index.vue"),
    children: [
      {
        path: "/order/orderList",
        name: "orderList",
        key: '5-1',
        title: "订单管理",
        meta: { crumb: ["订单管理","订单管理"] },
        component: () => import("@/views/order/list.vue"),
      },
      {
        path: "/order/orderRecycle",
        name: "orderRecycle",
        key: '5-2',
        title: "订单回收站",
        meta: { crumb: ["订单管理","订单回收站"] },
        component: () => import("@/views/order/recycle.vue"),
      },
      {
        path: "/order/total",
        name: "total",
        key: '5-3',
        title: "订单统计",
        meta: { crumb: ["订单管理","订单统计"] },
        component: () => import("@/views/order/total.vue"),
      },
    ]
  },
  // 用户管理
  {
    path: "/user",
    name: "user",
    key: '6',
    title: "用户管理",
    component: () => import("@/views/user/index.vue"),
    children: [
      {
        path: "/user/userList",
        name: "luserList",
        key: '6-1',
        title: "用户列表",
        meta: { crumb: ["用户管理","用户列表"] },
        component: () => import("@/views/user/list.vue"),
      },
      {
        path: "/user/userCreate",
        name: "userCreate",
        key: '6-2',
        title: "用户创建",
        meta: { crumb: ["用户管理","用户创建"] },
        component: () => import("@/views/user/create.vue"),
      },

    ]
  },
  //角色管理
  {
    path: "/role",
    name: "role",
    key: '7',
    title: "角色管理",
    component: () => import("@/views/role/index.vue"),
    children: [
      {
        path: "/role/roleList",
        name: "roleList",
        key: '7-1',
        title: "角色列表",
        meta: { crumb: ["角色管理","角色列表"] },
        component: () => import("@/views/role/list.vue"),
      },
      {
        path: "/role/roleCreate",
        key: '7-2',
        name: "roleCreate",
        title: "角色创建",
        meta: { crumb: ["角色管理","角色创建"] },
        component: () => import("@/views/role/create.vue"),
      },

    ]
  },
  //权限管理
  {
    path: "/auths",
    name: "auths",
    key: '8',
    title: "权限管理",
    component: () => import("@/views/auths/index.vue"),
    children: [
      {
        path: "/auths/authsList",
        name: "authsList",
        key: '8-1',
        title: "权限列表",
        meta: { crumb: ["权限管理","权限列表"] },
        component: () => import("@/views/auths/list.vue"),
      },
    ]
  },
]